package com.dk.service.impl;

import com.dk.controller.TestController;
import com.dk.service.TestServiceI;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

//@Service
public class TestServiceImpl implements TestServiceI {
    private final Logger logger= LoggerFactory.getLogger(TestController.class);
    @Override
    public String test() {
        logger.info("日志打印成功1。。。。");
        logger.warn("warn1");
        logger.error("error1");
        logger.debug("debug1");
        int i=9/0;
        return "hello world";
    }
}
